home *** CD-ROM | disk | FTP | other *** search
- echo off
- cls
- rem
- rem ------------------------------------------------------------------
- rem
- rem XCPY2DSC.BAT
- rem Walt Jung 03/12/90
- rem
- rem This batch file will re-create the LTC macromodel DEMO diskette,
- rem with PSPICE intact, on a target disc of your choice. The new (pre-
- rem sumably faster) disc can then then be used for your test simulations.
- rem Note: Either a portion of a hard disc (C: thru G:) or a RAM disc
- rem (either with about 1meg) can be used.
- rem
- rem ------------------------------------------------------------------
- rem
- rem
- if (%1)==() goto telerr
- if (%2)==() goto telerr
- if (%1)==(b:) goto telerrb
- if (%2)==(B:) goto telerrb
- :chk1
- if (%1)==(a:) goto chk2
- if (%1)==(A:) goto chk2
- if (%1)==(c:) goto chk2
- if (%1)==(C:) goto chk2
- if (%1)==(d:) goto chk2
- if (%1)==(D:) goto chk2
- if (%1)==(e:) goto chk2
- if (%1)==(E:) goto chk2
- if (%1)==(f:) goto chk2
- if (%1)==(F:) goto chk2
- if (%1)==(g:) goto chk2
- if (%1)==(G:) goto chk2
- :chk2
- if (%2)==(a:) goto xcpy2dsc
- if (%2)==(A:) goto xcpy2dsc
- if (%2)==(c:) goto xcpy2dsc
- if (%2)==(C:) goto xcpy2dsc
- if (%2)==(d:) goto xcpy2dsc
- if (%2)==(D:) goto xcpy2dsc
- if (%2)==(e:) goto xcpy2dsc
- if (%2)==(E:) goto xcpy2dsc
- if (%2)==(f:) goto xcpy2dsc
- if (%2)==(F:) goto xcpy2dsc
- if (%2)==(g:) goto xcpy2dsc
- if (%2)==(G:) goto xcpy2dsc
- :telerr
- rem ------------------------------------------------------------------
- rem if this far, all not well. abort with msg above, and note bad drive
- rem ------------------------------------------------------------------
- cls
- echo
- echo
- echo
- echo Sorry, but we need 2 (correct) drives!
- echo
- echo One is the disk (or diskette) where DEMO files are now (source), the
- echo second is the disk (or diskette) where they are to be copied (target).
- echo
- echo The syntax to be used is: "XCPY2DSC SOURCE TARGET"
- echo
- echo Re-enter command as "XCPY2DSC A: F:", "XCPY2DSC F: A:", etc
- echo (source= "A:", target= "F:", etc., in first example above,
- echo drives allowed are A:, and C: thru G:. Note B: is excluded)
- echo
- echo
- goto badxt1
- :telerrb
- rem ------------------------------------------------------------------
- rem if come here, drive B: not well.. abort with msg
- rem ------------------------------------------------------------------
- cls
- echo
- echo
- echo
- echo Sorry, but we need 2 (correct) drives, excluding drive B:...
- echo
- echo One is the disk (or diskette) where DEMO files are now (source), the
- echo second is the disk (or diskette) where they are to be copied (target).
- echo
- echo The syntax to be used is: "XCPY2DSC SOURCE TARGET"
- echo
- echo Re-enter command as "XCPY2DSC A: F:", "XCPY2DSC F: A:", etc
- echo (source= "A:", target= "F:", etc., in first example above,
- echo drives allowed are A:, and C: thru G:. Note B: is excluded)
- echo
- echo
- :badxt1
- goto badxt
- rem ------------------------------------------------------------------
- rem if/when all is well, we arrive below (at last!)
- rem ------------------------------------------------------------------
- :xcpy2dsc
- echo
- echo
- echo Please verify BOTH of the two conditions below:
- echo
- echo 1) Is the drive %2 ready to accept the DEMO files, and does it
- echo have 1meg or more of free space?
- echo
- echo 2) Are you right now LOGGED INTO the target DIR, on drive %2?
- echo
- echo Displayed below is the target DRIVE\DIR currently logged:
- echo
- echo
- chkdsk %2
- echo
- echo
- echo If not, hit ^C now to abort, and re-check your setup.
- echo If you are now ready, hit the spacebar to copy, ....
- echo
- echo (Note: any existing files of same name(s) will be over written.
- echo DO use a RAM disc, for highest speed.)
- echo
- pause
- cls
- echo
- echo Now beginning copy of %1 (source) files to %2\ (target)...
- echo
- xcopy %1 %2 /e/s
- cls
- :exitnorm
- cls
- %2
- dir /w
- echo
- echo LTC model files and PSpice files now are available on drive %2.
- echo To run DEMO, enter "DEMOLTC" now.
- echo
- :badxt
- :exit
-
-
-